package com.abc.queue;

/**
 * 延时队列
 * @author ygsong.abcft
 *
 */
public class SessionDelayQueue {
	
	public static void main(String[] args) throws InterruptedException {
		Session session = new Session();
		session.startSession();
		session.put("name", "aa");
		Thread.sleep(8000);
		session.get("name");
       /* session.startSession();
        session.put("username", "yvan");
        Thread.sleep(4000);
        session.put("userlevel", "svip");
        session.get("username");
        Thread.sleep(1000);
        session.get("userlevel");
        Thread.sleep(1000);
        session.get("username");
        Thread.sleep(1000);
        session.get("userlevel");
        Thread.sleep(6000);
        session.get("username");
        Thread.sleep(3000);
        session.get("userlevel");
        Thread.sleep(7000);
        session.get("username");*/
	}

}
